import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import i18n from './common/i18n'
import PhotUI from '@photlab/phot-ui'

import './assets/styles/style.scss'
import './assets/font/font.scss'
import '@photlab/phot-icon/iconfont.css'
import '@photlab/phot-icon/iconfont.js'
import '@photlab/phot-ui/lib/index.css'
import '@photlab/phot-client/lib'
import '@photlab/phot-client/src'

import electron from 'electron'

import { mainStartUpRoutine } from './services/bootstrap'
import Loading from './components/Loading'
import Toast from './components/Toast'

const app = createApp(App)
app.use(store)
app.use(i18n)
app.use(PhotUI)
app.use(router)
app.mount('#app')

app.config.globalProperties.$loading = Loading
app.config.globalProperties.$toast = Toast

window.vm = app
window.electron = electron

mainStartUpRoutine()
